package com.xingli.jingdongshop.dao;

import com.xingli.jingdongshop.entity.GoodsCabinet;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface GoodsCabinetDao extends CrudRepository<GoodsCabinet, Integer> {
    List<GoodsCabinet> getByShopId(int shopId);
    Page<GoodsCabinet> getByShopId(int shopId, Pageable pageable);
}
